<?php

/*
 * PATTERN REGULAR EXPRESSION
 */


//  CORE
//////////////////////////
//DATA TYPE
define("pBool", "/^[0-1]{1}$/");
define("pUnsignedInt", "/^[0-9]{1,10}$/");
define("pSignedInt", "/^[\-]+[0-9]{1,10}$/");

define("pStringId", "/^[\d]{1,10}$/");
define("pAct", "/^[a-z]{3}$/");




define("pMail", "/^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$/");

define("pLongText", "/^[a-zA-Z0-9\/\-\#\.\ \_\@\<\>\,\+\*\&\!\?\:\"\=\(\)\%\^\'\t\r\n\s]{0,1000}$/");
define("pVerificationCode", "/^[a-zA-Z0-9]{6}$/");

define("pFileName", "/^[a-zA-Z\d\/\-\#\.\ \_\@\!]{5,200}$/");
define("pUrl", "/^[a-zA-Z\d\.\&\=\?]{5,200}$/");

define("pDateDDMMYYYY", "/^[0-9]{2}+[\/]{1}+[0-9]{2}+[\/]{1}+[0-9]{4}$/");
define("pDateDB", "/^[0-9]{4}+[\-]{1}+[0-9]{2}+[\-]{1}+[0-9]{2}$/");


define("pSearcKeywords", "/^[a-zA-Z0-9\/\-\#\.\ \_\@\<\>\,\+\*\&\!\?\:\"\=\(\)\%\^\'\t\r\n\s]{0,1000}$/");



//USER
//define("pPersonId", "/^[0-9]{2}[\-]{1}[0-9]{100}$/");
define("pPersonId", "/^[0-9\-]{1,100}$/");
//define("pPersonId", "/^[0-9]{6}$/");
define("pUsername", "/^[a-zA-Z\d\.]{3,25}$/");
define("pPass", "/^[a-zA-Z0-9\ \.\,\@\-\_\/\#\!\+\=]{5,32}$/");
//define("pPass", "/^[a-zA-Z\d\/\-\#\.\ \_\@\!\?\/\&\*]{5,32}$/");
define("pUserId", "/^[a-z?0-9]{6}$/");
define("pKategoriUser", "/^[\d]{4}$/");


///////////////////
define("pActCode", "/^[a-z\d]{25,32}$/");
define("pAuthLevel", "/^[\d]{1,2}$/");
define("pClassName", "/^[a-zA-Z\-\_\ ]{3,30}$/");




//MENU
define("pMenu", "/^[1-9]{1,2}$/");
define("pSubMenu", "/^[0-9]{1,3}$/");

//SEARCH
define("pStringKeywords", "/^[a-zA-Z\d\ \-\_\@\.\(\)\/]{1,25}$/");


define("pId", "/^[0-9]{0,4}$/");
define("pIdNonNull", "/^[0-9]{1,3}$/");

define("pExecInfo", "/^[a-zA-Z0-9\-\|\ \:]{20,100}$/");
define("pPage", "/^[0-9\-]{1,2}$/");



//pName = P MEMBER
//pMail = P MEMBER
//PROFILE
define("pName", "/^[a-zA-Z\ \'\.\,]{3,50}$/");
define("pMail", "/^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$/");
define("pAddress", "/^[a-zA-Z\d\n\/\-\#\.\ \_\@\<\>\,\(\) \t\r\n\s]{5,250}$/");
define("pCity", "/^[a-zA-Z\-\'\ ]{3,20}$/");
define("pZip", "/^[\d]{5}$/");
define("pPhone", "/^[\d\(\)\ \-]{5,25}$/");
define("pMobile", "/^[\d\(\)\ \-+]{9,25}$/");

define("pTitle", "/^[a-zA-Z0-9\ \'\.\,\#\(\)\+\&\!\?\:]{3,100}$/");
